//
//  NSObject+KDTest.m
//  KDExample
//
//  Created by YeQing on 2017/5/16.
//  Copyright © 2017年 naruto. All rights reserved.
//

#import "NSObject+KDTest.h"
#import <objc/runtime.h>

@implementation NSObject (KDTest)
#pragma mark - testObject
-(KDCategoryObject *)testObject
{
    return objc_getAssociatedObject(self, @selector(testObject));
}
-(void)setTestObject:(KDCategoryObject *)testObject
{
    objc_setAssociatedObject(self, @selector(testObject), testObject, OBJC_ASSOCIATION_RETAIN);
}
@end
